"""
Project Name : api_automation_framework
File Name : image-demo.py
Author : lldhsds
Date : 2024/12/29 13:03
Description: /image, Return a simple image of the type suggest by the Accept header.
"""

import requests

def image_demo() -> None:
    url = "https://httpbin.org/image"
    headers = {'Accept': 'image/webp'}
    response = requests.get(url, headers=headers)
    print(response.status_code)
    print(response.content)
    print(response.headers)

image_demo()
